package com.manage.project.biz.service.impl;

import java.util.List;
import com.manage.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.manage.project.biz.mapper.BizYingjijianxiuMapper;
import com.manage.project.biz.domain.BizYingjijianxiu;
import com.manage.project.biz.service.IBizYingjijianxiuService;

/**
 * 土建结构经常检查Service业务层处理
 *
 * @author liutao

 */
@Service
public class BizYingjijianxiuServiceImpl implements IBizYingjijianxiuService
{
    @Autowired
    private BizYingjijianxiuMapper bizYingjijianxiuMapper;

    /**
     * 查询土建结构经常检查
     *
     * @param id 土建结构经常检查主键
     * @return 土建结构经常检查
     */
    @Override
    public BizYingjijianxiu selectBizYingjijianxiuById(Long id)
    {
        return bizYingjijianxiuMapper.selectBizYingjijianxiuById(id);
    }

    /**
     * 查询土建结构经常检查列表
     *
     * @param bizYingjijianxiu 土建结构经常检查
     * @return 土建结构经常检查
     */
    @Override
    public List<BizYingjijianxiu> selectBizYingjijianxiuList(BizYingjijianxiu bizYingjijianxiu)
    {
        return bizYingjijianxiuMapper.selectBizYingjijianxiuList(bizYingjijianxiu);
    }

    /**
     * 新增土建结构经常检查
     *
     * @param bizYingjijianxiu 土建结构经常检查
     * @return 结果
     */
    @Override
    public int insertBizYingjijianxiu(BizYingjijianxiu bizYingjijianxiu)
    {
        bizYingjijianxiu.setCreateTime(DateUtils.getNowDate());
        return bizYingjijianxiuMapper.insertBizYingjijianxiu(bizYingjijianxiu);
    }

    /**
     * 修改土建结构经常检查
     *
     * @param bizYingjijianxiu 土建结构经常检查
     * @return 结果
     */
    @Override
    public int updateBizYingjijianxiu(BizYingjijianxiu bizYingjijianxiu)
    {
        bizYingjijianxiu.setUpdateTime(DateUtils.getNowDate());
        return bizYingjijianxiuMapper.updateBizYingjijianxiu(bizYingjijianxiu);
    }

    /**
     * 批量删除土建结构经常检查
     *
     * @param ids 需要删除的土建结构经常检查主键
     * @return 结果
     */
    @Override
    public int deleteBizYingjijianxiuByIds(Long[] ids)
    {
        return bizYingjijianxiuMapper.deleteBizYingjijianxiuByIds(ids);
    }

    /**
     * 删除土建结构经常检查信息
     *
     * @param id 土建结构经常检查主键
     * @return 结果
     */
    @Override
    public int deleteBizYingjijianxiuById(Long id)
    {
        return bizYingjijianxiuMapper.deleteBizYingjijianxiuById(id);
    }
}
